package com.demo.arch.datapulsedemo.common;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 通知接收人
 * 
 * @author DataPulse Team
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class NotificationRecipient {

  /**
   * 姓名
   */
  private String name;

  /**
   * 邮箱
   */
  private String email;

  /**
   * 手机号
   */
  private String phone;

  /**
   * 角色
   */
  private String role;

  /**
   * 通知类型
   */
  private NotificationType type;

  /**
   * 通知类型枚举
   */
  public enum NotificationType {
    PRIMARY("主送"),
    CC("抄送");

    private final String description;

    NotificationType(String description) {
      this.description = description;
    }

    public String getDescription() {
      return description;
    }
  }
}
